/**
 * 
 */
package com.effectivsocial.service.api;

import java.io.Serializable;
import java.util.List;

import jodd.mail.Email;

import org.springframework.data.domain.Pageable;


/**
 * @author Dhrubo
 *
 */
public interface BusinessService<T, ID> extends Serializable{

	T save(T t);
	void save(List<T> entities);
	
	
	T findOne(ID id);
	List<T> findByDeleted(Pageable pageable , boolean deleted);
	
	
	
	void delete(T entity);
	void delete(List<T> entities);
	void purge(List<T> entities);
	void update(T entity);
	void restore(T entity);
	

	long count();
	
	

}
